<?php
$this->breadcrumbs=array(
	'项目'=>array('index'),
	$model->title,
);

$this->menu=array(
	array('label'=>'项目列表', 'url'=>array('index')),
	array('label'=>'创建项目', 'url'=>array('create')),
	array('label'=>'更新项目', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'删除项目', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'确定要删除吗？')),
	array('label'=>'管理项目', 'url'=>array('admin')),
);
?>

<div id="coupons">

    <div id="content" class="coupons-box clear">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>项目信息 <?php echo $model->title; ?></h2>

				</div>
<?php
		if($model->reach_time=='0')
			$a='尚未成团';
		else {
			$a=date('Y年m月d日G时i分', $model->reach_time);
		}

?>
<?php
		$cityname=$model->city->name;
		$partnername=$model->partner->username;
		$delivery=$model->delivery=='coupon'?'优惠券':'快递';
 	$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'user_id',
		'title',
		//'summary',

		array('name'=>'city_id',
				'value'=>$cityname,
		),
		array('name'=>'partner_id',
				'value'=>$partnername,
		),
		'team_price',
		'market_price',
		'product',
		'per_number',
		'min_number',
		'max_number',
		'now_number',
		//'image',
		'mobile',
		'fare',
		//'address',
		//'detail',
		//'notice',
		//'express',
		//'delivery',
		array('name'=>'delivery',
				'value'=>$delivery,
		),
		//'state',
		//'buyonce',
		array('name'=>'expire_time',
				'value'=>date('Y年m月d日G时i分', $model->expire_time),
		),

		array('name'=>'begin_time',
				'value'=>date('Y年m月d日G时i分', $model->begin_time),
		),

		array('name'=>'end_time',
				'value'=>date('Y年m月d日G时i分', $model->end_time),
		),
		array('name'=>'reach_time',
				'value'=>$a,
		),

		/*array('name'=>'close_time',
				'value'=>date('Y年m月d日G时i分', $model->close_time),
		),*/
	),
)); ?>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
